 <script th:inline="javascript">
/*<![CDATA[*/
    function del(event,element){
    	event.preventDefault();
      	bootbox.confirm("您确定删除吗?", function(result) {
    	if(result){
    		var _id = $(element).attr("href").split("_")[0];
    		var _page=$(element).attr("href").split("_")[1];
    		var _viewState = $(element).attr("href").split('_')[2];
    		BOSS.remoteCall('admin/money/cardRecord/delete',$('#div_cardRecord_table'),{id:_id,page:_page,viewState:_viewState});
    		}
    	}); 
    }
/*]]>*/
</script>
<table class="table table-striped table-bordered  table-advance table-hover" id="div_cardRecord_table">
	<thead>
		<tr>
			<th>订单号</th>
			<th>商户</th>
			<th>价格</th>
			<th>时间</th>
			<th>充值卡</th>
			<th>操作</th>
		</tr>
	</thead>	
	<tbody>
		<tr class="odd gradeX" th:each="data : ${cardRecordPage}">
			<td th:text="${data.order_no}">
				
			</td>
			<td th:text="${data.userName}">
				
			</td>
			<td th:text="${data.price}">
				
			</td>
			<td th:text="${data.createdDate}">
				
			</td>
			<td th:text="${data.cardType}">
				
			</td>

			<td>
				 <a href="#" th:href="${data.id}+'_'+${cardRecordPage.number}+'_'+${viewState}" th:attr="id=${'link_delete_'+dataStat.index},name=${'link_delete_'+dataStat.index}" class="btn default btn-xs purple" onclick="del(event,this);"><i class="fa fa-minus"></i>移除</a>
			</td>		 
		</tr>
 	</tbody>
</table>

<div th:include="admin/page_footer" th:with="viewState=${viewState},url=${'/admin/money/cardRecord/index/'},pageContext=${cardRecordPage}"></div>